<template>
  <div>
    <router-link
      :to="{
        name: 'tab',
        params: {
          name: '罗飞',
          id: 1,
        },
      }"
      >点击到tab</router-link
    >
    <router-link
      :to="{
        name: 'tab',
        params: {
          name: '王远',
          id: 2,
        },
      }"
      >点击到tab</router-link
    >
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "Home",
};
</script>

<style>
</style>